package com.interceptor;

import java.lang.reflect.Proxy;

public class MyProxy {
	public Object getProxy(Object obj) {
		MyHandler mh = new MyHandler();
		mh.setObj(obj);
		return Proxy.newProxyInstance(Target.class.getClassLoader(), obj
				.getClass().getInterfaces(), mh);
	}
}
